package com.wanxi.inclass;

public class OutClass {
    private String name;

    public void OutClassMethod(){
        System.out.println(new InClass().name);
        class InnerClass{
            private String name;

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }
        }
    }
    public class InClass {
        private String name;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public void inClassMethod(String name) {
            System.out.println(OutClass.this.name);
        }
    }
}
